/*
 * Created on 2004-9-26
 */
package hzjbbis.framework.xml;

/**
 * @since 1.0
 * @author lix
 */
public class TextType implements XmlNodeType {

    private final static XmlNodeType TEXT_TYPE = new TextType();
    
    /**
     * @return TextType
     */
    public static XmlNodeType getInstance() {
        return TEXT_TYPE;
    }
    
    private TextType() {
    }

    /**
     * @see hzjbbis.framework.xml.XmlNodeType#isText()
     */
    public boolean isText() {
        return true;
    }

    /**
     * @see hzjbbis.framework.xml.XmlNodeType#isElement()
     */
    public boolean isElement() {
        return false;
    }

    /**
     * @see java.lang.Object#toString()
     */
    public String toString() {
        return "is text XmlNodeType";
    }

    /**
     * @see hzjbbis.framework.xml.XmlNodeType#getTagName()
     */
    public TagName getTagName() {
        return null;
    }
}
